<div ng-include src="'tpl/public/header.html?1'"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">更新订单时间</li>
  </ol>
  <form class="form-horizontal" role="form" name="form" novalidate ng-submit="save()">
   <div style="width: 60%;display: inline-block;">
       <div class="form-group" ng-class="{'has-error':form.userCreateDate.$invalid||form.userCreateDateEnd.$invalid}">
      <label class="col-sm-2 control-label">注册时间</label>
      <div class="col-sm-5">
         <input type="date" class="form-control" placeholder="注册时间，格式如2015-01-01" name="userCreateDate" ng-model="dateparam.userCreateDate" required="required" maxlength="10" max="9999-99-99" ng-pattern="/^\d{4}-\d{2}-\d{2}$/" > 原有时间:{{orderDateInfo.userCreateDate}}
         <input type="text" class="form-control" placeholder="注册时分秒，格式如00:00:00" name="userCreateDateEnd" ng-model="dateparam.userCreateDateEnd" required="required" maxlength="10" ng-pattern="/^[0-2][0-9]:[0-5][0-9]:[0-5][0-9]$/">
      </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">认证时间</label>
          <div class="col-sm-5">
             <input type="date" class="form-control" placeholder="认证时间，格式如2015-01-01" name="userAuthDate" ng-model="dateparam.userAuthDate" maxlength="10" max="9999-99-99" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">原有时间:{{orderDateInfo.userAuthDate}}
              <input type="text" class="form-control" placeholder="认证时分秒，格式如00:00:00" name="userAuthDateEnd" ng-model="dateparam.userAuthDateEnd" maxlength="10" ng-pattern="/^[0-2][0-9]:[0-5][0-9]:[0-5][0-9]$/">
          </div>
        </div>

        <div class="form-group" ng-class="{'has-error':form.orderCreateDate.$invalid||form.orderCreateDateEnd.$invalid}">
          <label class="col-sm-2 control-label">订单预约时间</label>
          <div class="col-sm-5">
             <input type="date"  class="form-control" placeholder="订单预约时间，格式如2015-01-01" name="orderCreateDate" ng-model="dateparam.orderCreateDate" maxlength="10" max="9999-99-99" required="required" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">原有时间:{{orderDateInfo.orderCreateDate}}
            <input type="text" class="form-control" placeholder="订单预约时分秒，格式如00:00:00" name="orderCreateDateEnd" ng-model="dateparam.orderCreateDateEnd" required="required" maxlength="8" minlength="8" ng-pattern="/^[0-2][0-9]:[0-5][0-9]:[0-5][0-9]$/">
          </div>
        </div>
          <div class="form-group">
      <label class="col-sm-2 control-label">&nbsp;</label>
      <div class="col-sm-5"> 
        <input type="submit" class="btn btn-primary" value="更新" />
      </div>
    </div>
    <div>
       <table class="table table-striped table-bordered">
        <tbody> 
          <tr><td width="150">订单ID</td> <td >{{item.orderId}}</td> </tr>
          <tr><td width="150">订单号</td> <td >{{item.oCode}}</td> </tr>
          <tr><td >订单金额</td> <td >{{item.oAmount | moneyRender}}</td> </tr>
          <tr><td>当前状态</td> <td class="order-status-{{item.oStatus}}" >{{item.oStatus | orderStatusRender}}</td> </tr>
          <tr><td >产品简称</td> <td >{{item.oPName}}</td></tr>
          <tr><td>理财师</td><td >{{item.oULoginName}}</td></tr>
          <tr><td>客户姓名</td> <td >{{item.oCName}}</td> </tr>
          <tr><td>预约时间</td> <td >{{item.createDate | date:'yyyy-MM-dd HH:mm'}}</td> </tr>
          <tr><td>处理时间</td> <td >{{item.updateDate | date:'yyyy-MM-dd HH:mm'}}</td> </tr>
          <tr><td>订单备注</td> <td >{{item.oRemark}}</td> </tr>
        </tbody>
      </table> 
    </div>
   
  </div>
  <div style="padding-left:50px;width:30%;float:right;">
    <ul>
      <li style="margin-top:10px;font-size: 20px;color:blue">订单追踪</li>
      <li style="margin-top:20px;list-style-type: disc;{{it.oStatus=='220'?'color:red':''}}" ng-repeat="it in orderFlowList">
      {{it.oStatus |orderStatusRender}} &nbsp;&nbsp; 操作人：{{it.createBy | createByFilterByRender}}<br/>
       {{it.flowDate | date:'yyyy-MM-dd HH:mm'}}
       <input type="hidden" ng-model="orderFlowId[$index]" ng-init="orderFlowId[$index]=it.id"/>
        <input ng-change="upDate(it.oStatus)" type="date" required="required" class="form-control" placeholder="订单预约时间，格式如2015-01-01" name="orderFlow[$index]" ng-model="orderFlow[$index]" maxlength="10" max="9999-99-99" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">
        <input ng-change="upDate(it.oStatus)" type="text" class="form-control" placeholder="订单预约时分秒，格式如00:00:00" name="orderFlowEnd[$index]" ng-model="orderFlowEnd[$index]" required="required" maxlength="10" ng-pattern="/^[0-2][0-9]:[0-5][0-9]:[0-5][0-9]$/">
      </li>
    </ul>
  </div>
  
  </form>

</div>